<?php

    $dbh = mysql_connect("localhost", "sig", 'clave');
    $db = mysql_select_db('FerroOnce01');
    
    $Select1=$_GET['tituloen'];
    if ($Select1>0){
        $consulta = "SELECT * from Titulo";
        $query = mysql_query($consulta);
        echo '<option value="0"> seleccionar </option>';
        while ($fila = mysql_fetch_array($query)) {
            echo '<option value="'.$fila['id_titulo'].'">'.$fila['Descripcion'].'</option>';
        };
    }
    else { echo '<option value="0"> seleccionar </option>'; }
    
?>
